﻿using System;
using DuckGame1._0.Duck;

namespace DuckGame1._0
{
    class Program
    {
        static void Main(string[] args)
        {
            //调用野鸭
            var md = new MallardDuck();
            Console.WriteLine(md.Display() + "#" + md.Swim() + "#" + md.FlyBehavior.Fly() + "#" + md.QuackBehavior.Quack());
            //调用红头鸭
            var rd = new ReadHeadDuck();
            Console.WriteLine(rd.Display() + "#" + rd.Swim() + "#" + rd.FlyBehavior.Fly() + "#" + rd.QuackBehavior.Quack());
            //调用野鸭
            var wd = new WoodenDuck();
            Console.WriteLine(wd.Display() + "#" + wd.Swim() + "#" + wd.FlyBehavior.Fly() + "#" + wd.QuackBehavior.Quack());
            //机器鸭
            var mc = new MachineDuck();
            Console.WriteLine(mc.Display() + "#" + mc.Swim() + "#" + mc.FlyBehavior.Fly() + "#" + mc.QuackBehavior.Quack());
        }
    }
}
